<?php 
namespace App\Infra\User;

use App\Models\WeChatUser;
use App\Utils\ModelSDK\ModelOperator;

class WeChatManage{

	use ModelOperator;

	public function createUserInfo($data){
		$this->create(WeChatUser::class,$data);
	}

	public function updateUserStatus($conditions,$data){
		$this->getUserInfo($conditions)->update($data);
	}

	public function getUserInfo($conditions){
		return $this->findModel(WeChatUser::class,WeChatUser::query()->with(['wechatUserInfo']),$conditions);
	}
}